import { useEffect } from "react";
import { Outlet } from "react-router-dom";
import { useGlobalStore } from "@/store";

export default function Layout() {
  const init = useGlobalStore((state: any) => state.initialize);

  useEffect(() => {
    init();
  });

  return (
    <>
      <Outlet />
    </>
  );
}
